<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>12-判断是否是数组还是对象</title>
	</head>
	<body>
		<script type="text/javascript">
			var arr = new Array(1,3,90);
			var obj = {};
			
			console.log(arr instanceof Array);//true
			console.log(obj instanceof Object);//true
			
			
			var arr1 = arr.reverse();
			console.log(arr1);
			
		</script>
	</body>
</html>
